import https from "@/utils/https.js";
import host from "@/utils/host.js";

export default {
  //查询订单支付
  queryWepayOrder(data) {
    return host.request({
      url: "/web/query_wepay_order",
      method: "post",
      data
    });
  },


  //获取验证码
  getCaptcha() {
    return host.request({
      url: "/system_utils/get-captcha-noauth",
      method: "post",
    });
  },

  //登录
  login(data) {
    return host.request({
      url: "/admin/login/login-noauth",
      method: "post",
      data
    });
  },

  //获取文件流
  getFile(data) {
    return host.request({
      url: "/system_utils/get_file",
      method: "post",
      data
    });
  },

  //上传文件
  uploadFile(data) {
    return host.request({
      url: "/system_utils/upload_file",
      method: "post",
      data
    });
  },

  //上传文件-芯乐
  uploadFileSeenLove(data) {
    return host.request({
      url: "/system_utils/upload_file_seenlove",
      method: "post",
      headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
      data
    });
  },

  //删除存储桶图片
  uploadDel(data) {
    return host.request({
      url: "/system_utils/upload_del",
      method: "post",
      data
    });
  },

  //菜单
  menus(data) {
    return host.request({
      url: `/admin/system/menu`,
      method: "post",
      data
    });
  },

  //账号
  account(data) {
    return host.request({
      url: `/admin/system/account`,
      method: "post",
      data
    });
  },

  //角色
  role(data) {
    return host.request({
      url: `/admin/system/role`,
      method: "post",
      data
    });
  },

  //用户信息
  userInfo(data) {
    return host.request({
      url: `/admin/system/user_info`,
      method: "post",
      data
    });
  },

  //问卷星 - 增删改查
  questionStar(data) {
    return host.request({
      url: `/admin/report/questionStar`,
      method: "post",
      data
    });
  },

  //微信支付 - 增删改查
  wxPay(data) {
    return host.request({
      url: `/admin/report/wxPay`,
      method: "post",
      data
    });
  },

  //开票记录 - 增删改查
  invoicingRecord(data) {
    return host.request({
      url: `/admin/report/invoicing`,
      method: "post",
      data
    });
  },

  //申请开票
  applyInvoice(data) {
    return host.request({
      url: `/uni/invoice/applyInvoice_noauth`,
      method: 'post',
      data
    })
  },

  //发票查询 
  queryOrder(data) {
    return host.request({
      url: `/uni/invoice/queryOrder_noauth`,
      method: 'post',
      data
    })
  },

  //查询总报表 
  reportBill(data) {
    return host.request({
      url: `/admin/report/bill`,
      method: 'post',
      data
    })
  },

  //字典管理
  dict(data) {
    return host.request({
      url: `/admin/system/dict_noauth`,
      method: 'post',
      data
    })
  },

  //获取系统配置项
  systemConfig(data) {
    return host.request({
      url: `/system_utils/config`,
      method: 'post',
      data
    })
  },

  //官网首页基础信息配置
  webHome(data) {
    return host.request({
      url: `/admin/web/home_noauth`,
      method: 'post',
      data
    })
  },

  //课程分类
  webCurriculum(data) {
    return host.request({
      url: `/admin/web/curriculum_noauth`,
      method: 'post',
      data
    })
  },

  //课程列表
  course(data) {
    return host.request({
      url: `/admin/web/course_noauth`,
      method: 'post',
      data
    })
  },

  //订单管理
  orderAction(data) {
    return host.request({
      url: `/web/order`,
      method: 'post',
      data
    })
  },

  //信息资讯
  realInfo(data) {
    return host.request({
      url: `/web/realInfo_noauth`,
      method: 'post',
      data
    })
  },

  //学员管理
  student(data) {
    return host.request({
      url: `/admin/user/student`,
      method: 'post',
      data
    })
  },

  //获取企业抬头
  autoMatchCompany(data) {
    return host.request({
      url: `/uni/invoice/autoMatchCompany_noauth`,
      method: 'post',
      data
    })
  },

  //退款
  orderRefund(data) {
    return host.request({
      url: `/admin/web/order_refund`,
      method: 'post',
      data
    })
  },

  //学员信息的导入模板
  fileTemplate(data) {
    return host.request({
      url: `/admin/file`,
      method: 'post',
      data
    })
  },

  //魔学院标签管理
  moxueyuanTags(data) {
    return host.request({
      url: `/thirdParty/moxueyuanTags`,
      method: 'post',
      data
    })
  },

  //魔学院课程管理
  moxueyuanInfo(data) {
    return host.request({
      url: `/admin/moxueyuan/info`,
      method: 'post',
      data
    })
  },

  //魔学院操作日志
  moxueyuanLog(data) {
    return host.request({
      url: `/admin/system/moxueyuan_log`,
      method: 'post',
      data
    })
  },

  //红冲发票
  invoiceCancel(data) {
    return host.request({
      url: `/uni/invoice/invoiceCancel`,
      method: 'post',
      data
    })
  },

  //班级管理
  classData(data) {
    return host.request({
      url: `/admin/affairsCenter/class`,
      method: 'post',
      data
    })
  },

  //班级管理ToC
  classToC(data) {
    return host.request({
      url: `/admin/affairsCenter/classToC`,
      method: 'post',
      data
    })
  },


  //排课管理
  teachingScheduleData(data) {
    return host.request({
      url: `/admin/affairsCenter/teaching_schedule`,
      method: 'post',
      data
    })
  },

  //排课管理-Toc
  teachingScheduleDataToC(data) {
    return host.request({
      url: `/admin/affairsCenter/teaching_schedule_ToC`,
      method: 'post',
      data
    })
  },

  //听课评议表
  classLessonEvaluation(data) {
    return host.request({
      url: `/admin/affairsCenter/class_lesson_evaluation`,
      method: 'post',
      data
    })
  },

  //班级学员管理
  classStudent(data) {
    return host.request({
      url: `/admin/affairsCenter/class_student`,
      method: 'post',
      data
    })
  },

  //班级点名
  classNameCalling(data) {
    return host.request({
      url: `/admin/affairsCenter/class_signIn`,
      method: 'post',
      data
    })
  },

  //班级模板导出
  classDocExport(data) {
    return host.request({
      url: `/admin/affairsCenter/class_doc_export`,
      method: 'post',
      data
    })
  },

  //班级报表
  classReport(data) {
    return host.request({
      url: `/admin/affairsCenter/class_report`,
      method: 'post',
      data
    })
  },

  //师资管理
  teachers(data) {
    return host.request({
      url: `/admin/affairsCenter/teachers`,
      method: 'post',
      data
    })
  },

  //文件列表
  fileList(data) {
    return host.request({
      url: `/admin/file_list`,
      method: 'post',
      data
    })
  },

  //教学档案
  teachingArchives(data) {
    return host.request({
      url: `/admin/affairsCenter/teaching_archives`,
      method: 'post',
      data
    })
  },

  //教学档案 - 相关报表
  scheduleRelevant(data) {
    return host.request({
      url: `/admin/affairsCenter/schedule_relevant`,
      method: 'post',
      data
    })
  },

  //班级相册
  classAlbum(data) {
    return host.request({
      url: `/admin/affairsCenter/class_album`,
      method: 'post',
      data
    })
  },

  //学员管理
  classStudentManage(data) {
    return host.request({
      url: `/admin/affairsCenter/class_student_manage`,
      method: 'post',
      data
    })
  },

  //首页-课程-报表
  curriculumReport(data) {
    return host.request({
      url: `/admin/report/curriculum`,
      method: 'post',
      data
    })
  },

  //首页-汇总-报表
  reportSummaryData(data) {
    return host.request({
      url: `/admin/report/summary_data`,
      method: 'post',
      data
    })
  },

  //首页-魔学院-报表
  moxueyuanReport(data) {
    return host.request({
      url: `/admin/report/moxueyuan`,
      method: 'post',
      data
    })
  },

  //首页-魔学院-班级
  classInfoReport(data) {
    return host.request({
      url: `/admin/report/class`,
      method: 'post',
      data
    })
  },

  //培训项目
  trainList(data) {
    return host.request({
      url: `/admin/moxueyuan/train`,
      method: 'post',
      data
    })
  },

  //魔学院相关操作
  moxueyuanFunc(data) {
    return host.request({
      url: `/thirdParty/moxueyuanFunc`,
      method: 'post',
      data
    })
  },

  //订单优惠记录
  orderDiscountRecord(data) {
    return host.request({
      url: `/admin/web/order_discount_record`,
      method: 'post',
      data
    })
  },
}